package com.example.lab.service.impl;

import com.example.lab.entity.Device;
import com.example.lab.entity.Room;
import com.example.lab.mapper.SelectMapper;
import com.example.lab.service.SelectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SelectServiceImpl implements SelectService {
    @Resource
    SelectMapper selectMapper;

    @Override
    public List<Room> query() {
        return selectMapper.query();
    }
    @Override
    public List<Device> queryById(String id) {
        return selectMapper.queryById(id);
    }
}

